<template>
  <div>
     <img src="../assets/4137bc83-03b9-40f9-94d1-c45e60f631df.png" alt="" v-show="flag">
    <button @click='fn'>点击以后显示和隐藏</button>
   </div>
</template>
 
<script>
export default {

  data() {
    return {
      flag:true
    };
  },

  methods: {
    fn(){
      this.flag=!this.flag;
    }
  }
};
</script>

<style scoped>
     
</style>